Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't try and install the WASM module for MSFS versions that aren't installed #1868

Merged
merged 7 commits into from
Dec 2, 2024

Conversation

neilenns
Copy link
Contributor

@neilenns neilenns commented Nov 28, 2024

Fixes #1867

  • Skip install attempt if a community folder isn't found
  • Log better messages based on the different results: successfully installed, skipped because up-to-date, skipped because simulator not found

@neilenns neilenns requested a review from DocMoebiuz as a code owner November 28, 2024 00:40
@neilenns neilenns marked this pull request as draft November 28, 2024 00:40
Copy link

Build for this pull request:
MobiFlightConnector.zip

Copy link

Build for this pull request:
MobiFlightConnector.zip

Copy link

Build for this pull request:
MobiFlightConnector.zip

@neilenns neilenns marked this pull request as ready for review November 28, 2024 13:37
@@ -140,7 +140,6 @@ public bool InstallWasmModule(string communityFolder)
// Remove the old Wasm File
DeleteOldWasmFile(communityFolder);

Log.Instance.log("WASM module has been installed successfully.", LogSeverity.Info);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The caller now logs this based on the return value so different log messages can be sent based on the simulator version.

Copy link

Build for this pull request:
MobiFlightConnector.zip

UI/MainForm.cs Outdated Show resolved Hide resolved
Copy link
Collaborator

@DocMoebiuz DocMoebiuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment

@neilenns neilenns requested a review from DocMoebiuz December 1, 2024 18:48
Copy link

github-actions bot commented Dec 1, 2024

Build for this pull request:
MobiFlightConnector.zip

@neilenns
Copy link
Contributor Author

neilenns commented Dec 2, 2024

@DocMoebiuz I unwound the if statements, thanks for the suggestion. So much better.

Copy link

github-actions bot commented Dec 2, 2024

Build for this pull request:
MobiFlightConnector.zip

@DocMoebiuz DocMoebiuz merged commit 0a3df96 into MobiFlight:main Dec 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't attempt to install the WASM if a community folder isn't found
2 participants